package com.hzp.micromall.content.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 专题商品关系表
 * </p>
 *
 * @author houzipeng
 * @since 2022-03-08 10:15:14
 */
@Getter
@Setter
@TableName("cms_subject_product_relation")
@ApiModel(value = "SubjectProductRelation对象", description = "专题商品关系表")
public class SubjectProductRelation {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("专题id")
    @TableField("subject_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long subjectId;

    @ApiModelProperty("商品id")
    @TableField("product_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;

    @ApiModelProperty("是否删除（0：未删除 1：已删除）")
    @TableField("isDel")
    @TableLogic
    private Integer isDel;


}
